package com.light.applet.common.result;

import com.fasterxml.jackson.annotation.JsonView;
import com.light.applet.common.entity.BaseEntityView;
import lombok.Data;

import java.util.List;

/**
 * @author: 魏彪
 */
@Data
public class PageView<T> {

    @JsonView(BaseEntityView.class)
    private long current;

    @JsonView(BaseEntityView.class)
    private long pages;

    @JsonView(BaseEntityView.class)
    private List<T> records;

    @JsonView(BaseEntityView.class)
    private long size;

    @JsonView(BaseEntityView.class)
    private long total;
}
